<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
   <t:datagrid name="lessonInfoList" checkbox="false" fitColumns="true" title="课程信息" actionUrl="lessonInfoController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="课程编号"  field="lessonNo"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="课程名称"  field="lessonName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="负责人工号"  field="teacher.staffNo"   query="false" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="负责人姓名"  field="teacher.realName"   query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="150"></t:dgCol>
   <t:dgFunOpt funname="setItem(id,lessonName)" title="实验项目设置"></t:dgFunOpt>	   
   </t:datagrid>
  </div> 
</div>
<div region="east" style="width: 600px;" split="true">
	<div tools="#tt1" class="easyui-panel" title='设置实验项目' style="padding: 10px;" fit="true" border="false" id="function-panel"></div>
 </div> 
 <div id="tt1"></div>
 
 		
 <script type="text/javascript">
 
 
 function setItem(id,lessonName){
	 $("#function-panel").panel(
		{
			title :lessonName + '的实验项目设置',
			href:"dictTeachItemController.do?listByLesson&lessonId=" + id
		}
	);
	$('#function-panel').panel("refresh" );
	return false;
 }

 
 </script>